package com.xxyf.dto;

import com.xxyf.entity.Message;
import com.xxyf.entity.Reply;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * @Author 小小怡飞
 * @Date 2023/3/2 22:04
 * @Version JDK 8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Msg extends Message {
    private List<Reply> reply;
    public Msg(Message message,List<Reply> list){
        BeanUtils.copyProperties(message,this);
        this.reply=list;
    }
    public Msg(Message message){
        BeanUtils.copyProperties(message,this);
    }
}
